<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<?xml version="1.0" encoding="ISO-8859-1" ?>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Edit Sector</title>
<%@include file="../common_Admin_imports.jsp"%>
<%@include file="../common_loding_imports.jsp"%>
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">Sector Data Edit</div>
						<jsp:include page="../common_link.jsp" />
					</div>
				</div>
				<div class="content_wrapper">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="input_box_wrapper">
								<div class="input_box_wrapper_text_aery">
									<div class="span6">
										<form:form method="POST" commandName="sector"
											action="${pageContext.request.contextPath}/admin/sector/edit/${subSector.id}.html"
											class="form-horizontal">
											<div>${message}</div>
											<form:hidden path="id"></form:hidden>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Name :</label>
												<div class="controls">
													<form:input path="name" />
												</div>
												<div class="controls">
													<form:errors path="name" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Code :</label>
												<div class="controls">
													<form:hidden path="code" />
													<label class="date_field" for="inputEmail">${sector.code}</label>
												</div>
												<div class="controls">
													<form:errors path="code" cssClass="error"></form:errors>
												</div>
											</div>
											<form:hidden path="id"></form:hidden>
											<input type="submit" value="Save"
												class="btn btn-inverse save" />
										</form:form>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>